package com.aidex.system.mapper;

import com.aidex.system.domain.SysOperLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
    @Update("truncate table sys_oper_log")
    int clean();
    @Update("delete from sys_oper_log where datediff(SYSDATE(),create_time) >= #{saveDay}")
    int deleteBySaveDay(@Param("saveDay") String saveDay);
}
